/**
 * Created by isoft-work 5 on 12/7/2014.
 */

TEMPLATE.Menu = {
   item: '\
      <li class=" ">\
         <a href="#" id="cat_1199" class="sel-cat-tui-xach">\
         <span class="nav-subTxt">{tenDanhMuc}</span>\
         </a>\
         <div style="width: 350px;" class="nav-layer nav-layerSpec fsm box-bgcolor">\
         <span class="s-global iconSubArrow"></span>\
            <div class="navpal line">\
               <div class="box unit size1of2">\
                  <div class="prl">\
                  <h4 class="pbs">Danh mục</h4>\
                     <div class="line mts">\
                        <ul class="cnv unit">{listDetail}\
                        </ul>\
                     </div>\
                  </div>\
               </div>\
            </div>\
         </div>\
      </li>\
         ',
   itemDetail: '\
   <li class="cnv-level-1 nav__subCatItem">\
      <a href="{href}" id="{id}">\
         <span class="cnv-name">{danhMucSP}</span>\
      </a>\
   </li>\
   ',

   consultant: '\
      <li class=" ">\
         <a href="#" id="cat_1199" class="sel-cat-tui-xach">\
         <span class="nav-subTxt">TƯ VẤN</span>\
         </a>\
         <div style="width: 350px;" class="nav-layer nav-layerSpec fsm box-bgcolor">\
         <span class="s-global iconSubArrow"></span>\
            <div class="navpal line">\
               <div class="box unit size1of2">\
                  <div class="prl">\
                  <h4 class="pbs">Danh mục</h4>\
                     <div class="line mts">\
                        <ul class="cnv unit">\
                           <li class="cnv-level-1 nav__subCatItem">\
                              <a href="{contextPath}/jsp/user/user-consultant-clothes.jsp">\
                                 <span class="cnv-name">Tư vấn trang phục</span>\
                              </a>\
                           </li>\
                           <li class="cnv-level-1 nav__subCatItem">\
                              <a href="{contextPath}/jsp/user/user-consultant-size.jsp">\
                                 <span class="cnv-name">Gợi ý size trang phục</span>\
                              </a>\
                           </li>\
                        </ul>\
                     </div>\
                  </div>\
               </div>\
            </div>\
         </div>\
      </li>'
};

TEMPLATE.Women = {
   list: '\
   <h4>{danhMuc}</h4>\
   <ul>{item}\
   </ul>\
   ',
   item: '\
   <li><a href="{href}" id="{id}"> {danhMucSP} </a></li>\
   ',
   listLast: '\
   <ul class="last">{item}\
      <span class="strong"><a href="">&nbsp;</a></span>\
      <span class="strong"><a href="">&nbsp;</a></span>\
   </ul>\
   ',
   itemLast: '<li class="strong"><a href="#">{danhMuc} </a></li>'
};

TEMPLATE.Cart = {
   shopCart: '\
      <div class="i-arrow__container box"><span class="i-shoppingBag__arrow s-global"></span></div> \
      <div class="b-shopingBag__title"> GIỎ HÀNG  </div>\
      <div class="b-shoppingBag__wrapper">\
         <div class="b-shoppingBag__bagWrapper js-bagList">\
            {{#each carts}}\
               <div class="b-shoppingBag__bagItem js-bagItem">\
                  <div class="b-shoppingBag__bag box">\
                     <div class="b-shoppingBag__bagImg loaded">\
                        <a href="{{@root.contextPath}}/jsp/user/user-cart.jsp">\
                           <img width="100px" class="b-shoppingBag__bagImg loaded" src="{{@root.contextPath}}{{image}}">\
                        </a>\
                     </div>\
                     <div class="b-shoppingBag__bagContent">\
                        <div class="b-shoppingBag__bagName">\
                           <a href="{{@root.contextPath}}/jsp/user/user-cart.jsp">{{tenSP}}</a>\
                        </div>\
                        <div class="b-shoppingBag__bagDelivery">trong 3 - 5 ngày làm việc</div>\
                        <div class="box">\
                           <div class="b-shoppingBag__bagListLabel">Kích cỡ</div>\
                           <div class="b-shoppingBag__bagListValue">{{chiTietSanPham.kichThuoc.tenSize}}</div>\
                        </div>\
                        <div class="box">\
                           <div class="b-shoppingBag__bagListLabel">Màu sắc</div>\
                           <div class="b-shoppingBag__bagListValue">{{chiTietSanPham.mauSac.tenMau}}</div>\
                        </div>\
                        <div class="box">\
                           <div class="b-shoppingBag__bagListLabel">Số lượng</div>\
                           <div class="b-shoppingBag__bagListValue">{{count}}</div>\
                        </div>\
                        <div class="box">\
                           <div class="b-shoppingBag__bagListLabel">Price / item</div>\
                           <div class="b-shoppingBag__bagListValue__price ">{{giaBan}}&nbsp;VND</div>\
                        </div>\
                     </div>\
                  </div>\
               </div>\
            {{/each}}\
         </div>\
         <div class="b-shopingBag__total box">\
            <span class="b-shoppingBag_label lfloat">TỔNG</span>\
            <span class="b-shoppingBag_number rfloat">&nbsp VND</span>\
            <span class="b-shoppingBag_number rfloat">{{totalMoney}}</span>\
         </div>\
         <div class="b-shoppingBag__button box">\
            <a href="{{@root.contextPath}}/jsp/user/user-cart.jsp" class="js-viewCart btn btn-light b-shoppingBag_buttonContent shoppingBag__bagView lfloat">Xem Giỏ Hàng</a>\
            <a href="{{@root.contextPath}}/jsp/user/user-payment.jsp" class="js-goCheckout btn btn-dark b-shoppingBag_buttonContent shoppingBag__bagCheckout rfloat">Thanh Toán</a>\
         </div>\
         <div class="clearfix"></div>\
      </div>'
};
